3.77 \(\int \frac {(a x+b x^3+c x^5)^2}{x^2} \, dx\)

Optimal. Leaf size=49 \[ a^2 x+\frac {1}{5} x^5 \left (2 a c+b^2\right )+\frac {2}{3} a b x^3+\frac {2}{7} b c x^7+\frac {c^2 x^9}{9} \]

[Out]

a^2*x+2/3*a*b*x^3+1/5*(2*a*c+b^2)*x^5+2/7*b*c*x^7+1/9*c^2*x^9

________________________________________________________________________________________

Rubi [A]  time = 0.03, antiderivative size = 49, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.100, Rules used = {1585, 1090} \[ a^2 x+\frac {1}{5} x^5 \left (2 a c+b^2\right )+\frac {2}{3} a b x^3+\frac {2}{7} b c x^7+\frac {c^2 x^9}{9} \]

Antiderivative was successfully verified.

[In]

Int[(a*x + b*x^3 + c*x^5)^2/x^2,x]

[Out]

a^2*x + (2*a*b*x^3)/3 + ((b^2 + 2*a*c)*x^5)/5 + (2*b*c*x^7)/7 + (c^2*x^9)/9

Rule 1090

Int[((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4)^(p_), x_Symbol] :> Int[ExpandIntegrand[(a + b*x^2 + c*x^4)^p, x], x]
/; FreeQ[{a, b, c}, x] && NeQ[b^2 - 4*a*c, 0] && IGtQ[p, 0]

Rule 1585

Int[(u_.)*(x_)^(m_.)*((a_.)*(x_)^(p_.) + (b_.)*(x_)^(q_.) + (c_.)*(x_)^(r_.))^(n_.), x_Symbol] :> Int[u*x^(m +
 n*p)*(a + b*x^(q - p) + c*x^(r - p))^n, x] /; FreeQ[{a, b, c, m, p, q, r}, x] && IntegerQ[n] && PosQ[q - p] &
& PosQ[r - p]

Rubi steps

\begin {align*} \int \frac {\left (a x+b x^3+c x^5\right )^2}{x^2} \, dx &=\int \left (a+b x^2+c x^4\right )^2 \, dx\\ &=\int \left (a^2+2 a b x^2+b^2 \left (1+\frac {2 a c}{b^2}\right ) x^4+2 b c x^6+c^2 x^8\right ) \, dx\\ &=a^2 x+\frac {2}{3} a b x^3+\frac {1}{5} \left (b^2+2 a c\right ) x^5+\frac {2}{7} b c x^7+\frac {c^2 x^9}{9}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 49, normalized size = 1.00 \[ a^2 x+\frac {1}{5} x^5 \left (2 a c+b^2\right )+\frac {2}{3} a b x^3+\frac {2}{7} b c x^7+\frac {c^2 x^9}{9} \]

Antiderivative was successfully verified.

[In]

Integrate[(a*x + b*x^3 + c*x^5)^2/x^2,x]

[Out]

a^2*x + (2*a*b*x^3)/3 + ((b^2 + 2*a*c)*x^5)/5 + (2*b*c*x^7)/7 + (c^2*x^9)/9

________________________________________________________________________________________

fricas [A]  time = 0.60, size = 41, normalized size = 0.84 \[ \frac {1}{9} \, c^{2} x^{9} + \frac {2}{7} \, b c x^{7} + \frac {1}{5} \, {\left (b^{2} + 2 \, a c\right )} x^{5} + \frac {2}{3} \, a b x^{3} + a^{2} x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x^5+b*x^3+a*x)^2/x^2,x, algorithm="fricas")

[Out]

1/9*c^2*x^9 + 2/7*b*c*x^7 + 1/5*(b^2 + 2*a*c)*x^5 + 2/3*a*b*x^3 + a^2*x

________________________________________________________________________________________

giac [A]  time = 0.51, size = 43, normalized size = 0.88 \[ \frac {1}{9} \, c^{2} x^{9} + \frac {2}{7} \, b c x^{7} + \frac {1}{5} \, b^{2} x^{5} + \frac {2}{5} \, a c x^{5} + \frac {2}{3} \, a b x^{3} + a^{2} x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x^5+b*x^3+a*x)^2/x^2,x, algorithm="giac")

[Out]

1/9*c^2*x^9 + 2/7*b*c*x^7 + 1/5*b^2*x^5 + 2/5*a*c*x^5 + 2/3*a*b*x^3 + a^2*x

________________________________________________________________________________________

maple [A]  time = 0.00, size = 42, normalized size = 0.86 \[ \frac {c^{2} x^{9}}{9}+\frac {2 b c \,x^{7}}{7}+\frac {2 a b \,x^{3}}{3}+\frac {\left (2 a c +b^{2}\right ) x^{5}}{5}+a^{2} x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((c*x^5+b*x^3+a*x)^2/x^2,x)

[Out]

a^2*x+2/3*a*b*x^3+1/5*(2*a*c+b^2)*x^5+2/7*b*c*x^7+1/9*c^2*x^9

________________________________________________________________________________________

maxima [A]  time = 0.43, size = 41, normalized size = 0.84 \[ \frac {1}{9} \, c^{2} x^{9} + \frac {2}{7} \, b c x^{7} + \frac {1}{5} \, {\left (b^{2} + 2 \, a c\right )} x^{5} + \frac {2}{3} \, a b x^{3} + a^{2} x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x^5+b*x^3+a*x)^2/x^2,x, algorithm="maxima")

[Out]

1/9*c^2*x^9 + 2/7*b*c*x^7 + 1/5*(b^2 + 2*a*c)*x^5 + 2/3*a*b*x^3 + a^2*x

________________________________________________________________________________________

mupad [B]  time = 0.02, size = 42, normalized size = 0.86 \[ a^2\,x+x^5\,\left (\frac {b^2}{5}+\frac {2\,a\,c}{5}\right )+\frac {c^2\,x^9}{9}+\frac {2\,a\,b\,x^3}{3}+\frac {2\,b\,c\,x^7}{7} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a*x + b*x^3 + c*x^5)^2/x^2,x)

[Out]

a^2*x + x^5*((2*a*c)/5 + b^2/5) + (c^2*x^9)/9 + (2*a*b*x^3)/3 + (2*b*c*x^7)/7

________________________________________________________________________________________

sympy [A]  time = 0.08, size = 48, normalized size = 0.98 \[ a^{2} x + \frac {2 a b x^{3}}{3} + \frac {2 b c x^{7}}{7} + \frac {c^{2} x^{9}}{9} + x^{5} \left (\frac {2 a c}{5} + \frac {b^{2}}{5}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x**5+b*x**3+a*x)**2/x**2,x)

[Out]

a**2*x + 2*a*b*x**3/3 + 2*b*c*x**7/7 + c**2*x**9/9 + x**5*(2*a*c/5 + b**2/5)

________________________________________________________________________________________